<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./templates/template.xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:h="http://java.sun.com/jsf/html">

    <ui:define name="content"> 
        <h:panelGrid id="center_contentMain"> 
            <p:panel header="Iniciar Sesión" styleClass="sessionPanel">
                <h:panelGrid id="form" columns="3" >
                    <h:outputText value="Usuario:"/>
                    <p:inputText id="txtUser" 
                                 required="true" 
                                 requiredMessage="Requerido"/>
                    <p:message for="txtUser"/>

                    <h:outputText value="Contraseña:"/>
                    <p:password id="txtPassword" 
                                minLength="8" 
                                feedback="true" 
                                required="true" 
                                requiredMessage="Requerido" />
                    <p:message for="txtPassword"/>
                    
                    <h:outputText value="Año Escolar:"/>
                    <h:selectOneMenu id="cboAnioEscolar" 
                                     required="true" 
                                     requiredMessage="Requerido">
                        <f:selectItem itemLabel="Seleccione una Opción" value="#{null}"/>
                        <f:selectItem itemLabel="Año X" itemValue="1"/>
                        <f:selectItem itemLabel="Año Y" itemValue="1"/>
                    </h:selectOneMenu>
                    <p:message for="cboAnioEscolar"/>

                    <h:outputText/>
                    <p:commandButton id="cmdLogin" value="Entrar" process="@this form" update="form" />
                </h:panelGrid>
            </p:panel>
        </h:panelGrid>
    </ui:define> 

</ui:composition>
